package org.octopus.lee.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.octopus.lee.service.RegistryService;
import org.springframework.stereotype.Component;

/**
 * Created by UCMED on 2016/12/30.
 */
@Component
public class DubboController {
    @Reference(version = "1.0.0")
    private RegistryService registryService;

    /*public void setRegistryService(RegistryService registryService) {
        this.registryService = registryService;
    }*/

    public String show(String name) {
        return registryService.sayHello(name);
    }

}
